$("#users").html("<%= escape_javascript(render :partial => "users", :locals => {:users => @entity}) %>");
$("#class-pag").html("<%= escape_javascript(render :partial => 'layouts/pagination', :locals => {:entity => @entity}) %>");